package com.example.zqh.service;

import com.example.zqh.model.RespBean;
import com.example.zqh.pojo.Emp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zqh.pojo.params.EmpParams;
import com.example.zqh.pojo.params.OneStringOneNumber;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqh
 * @since 2022-09-10
 */
public interface EmpService extends IService<Emp> {

    /**
      * @Author: zqh
      * @Date:
      * @Description: 添加一个新员工
    */
    RespBean addANewEmployee(EmpParams empParams);
     
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 修改员工信息接口
    */
    RespBean modifyEmployeeInformationInterface(Emp emp);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 员工自己修改姓名接口
    */
    RespBean employeeSOwnNameChangeInterface(Integer id,String name);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 员工修改自己的密码
    */
    RespBean employeesChangeTheirPasswords(OneStringOneNumber oneStringOneNumber);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 员工修改电话接口
    */
    RespBean employeeModifiesPhoneInterface(OneStringOneNumber oneStringOneNumber);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 员工修改头像接口
    */
    RespBean employeeModificationAvatarInterface(OneStringOneNumber oneStringOneNumber);
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 获取所有员工的数量
    */
    RespBean getAllEmpty();
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 分页查询员工
    */
    RespBean queryEmployeesByPage(Integer page, Integer size);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 员工删除接口
    */
    RespBean employeeDeleteInterface(Integer id);
}
